package com.woniuxy.session.controller;

import com.woniuxy.session.service.SomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: linKe
 * @Date: 2022/1/6 11:31
 * @FileName: MeterController
 * @version: 1.0
 * @Description: JMeter 缓存穿透测试
 */
@RestController
@RequestMapping
public class MeterController {
    @Autowired
    SomeService someService;

    @GetMapping("/some")
    public String some(){
        return someService.some();
    }

    @GetMapping("/incr")
    public Integer incr(){
        return someService.incr();
    }
}
